<template>
  <view>
    <!-- <u--image  src="https://cdn.uviewui.com/uview/album/1.jpg" width="100%" height="320rpx" ></u--image> -->
    <img
      class="img"
      src="../../static/images/guanyuwomen.jpg"
      alt=""
      srcset=""
    >
    <view class="text">
      <text> 联系电话：12345678911</text>
    </view>
    <view class="text">
      <text>地址：浙江省杭州市临平区xxxxxx</text>
    </view>
    <map
      class="map"
      :longitude="lng"
      :latitude="lat"
      :markers="covers"
    ></map>
  </view>
</template>

<script>
export default {
  data() {
    return {
      lng: "120.300259",
      lat: "30.460747",
      covers:[{
        latitude: 30.460747,
				longitude: 120.300259,
      }]
    };
  },
  onLoad() {},
  methods: {
    gcj02towgs84(lng, lat) {
      var lat = +lat;
      var lng = +lng;
      if (out_of_china(lng, lat)) {
        return [lng, lat];
      } else {
        var dlat = transformlat(lng - 105.0, lat - 35.0);
        var dlng = transformlng(lng - 105.0, lat - 35.0);
        var radlat = (lat / 180.0) * PI;
        var magic = Math.sin(radlat);
        magic = 1 - ee * magic * magic;
        var sqrtmagic = Math.sqrt(magic);
        dlat = (dlat * 180.0) / (((a * (1 - ee)) / (magic * sqrtmagic)) * PI);
        dlng = (dlng * 180.0) / ((a / sqrtmagic) * Math.cos(radlat) * PI);
        var mglat = lat + dlat;
        var mglng = lng + dlng;
        return [lng * 2 - mglng, lat * 2 - mglat];
      }
    },
  },
};
</script>

<style lang="scss" scoped>
.img {
  width: 750rpx;
  height: 350rpx;
}
.text {
  margin: 20rpx 0 20rpx 0;
  font-size: 40rpx;
}
.map {
  width: 750rpx;
  height: 750rpx;
}
</style>
